
from bilibili_api import search, sync

# print(sync(search.search("半佛")))

# 判断自己写
# search_res = sync(search.search_by_type(keyword="张艺谋",search_type=search.SearchObjectType.USER,order_sort=0))
# user_list = []
# for user in search_res['result']:
#     user_list.append(user['uname'])
#
# print(user_list)

search_res = sync(search.get_hot_search_keywords())
hot_search_list = []
for user in search_res['list']:
    hot_search_list.append(user['show_name'])

print(hot_search_list)